package com.itheima.service;

import com.itheima.domain.Permission;
import com.itheima.domain.Role;

import java.util.List;

public interface RoleService {
    /*
    查询
     */
    public List<Role> findAll();

    /*
    添加
     */
    public void save(Role role);

    /*
    根据id查询
     */
    public Role findById(String id);

    /*
    查询可以添加的权限
     */
    public List<Permission> findOtherPermissions(String roleId);

    public void addPermissionToRole(String roleId ,String[] permissionIds);
}
